<?php foreach($result as $item) { ?><option value="<?=$item->id?>"><?=$item->ten?></option><?php } ?>